package refect;

public class Student {
    private String name;
    private Integer age;
    public String gender;

    public Student() {
    }

    public Student(String name, Integer age, String gender) {
        this.name = name;
        this.age = age;
        this.gender = gender;
    }

    public Student(int age) {
        this.age = age;
    }
    protected Student(String name) {
        this.name = name;
    }
    private Student(String name,int age) {
        this.name = name;
        this.age = age;
    }

    public void sleep() {
        System.out.println("hhfh");
    }

    private String eat(String food) {
        System.out.println("小猫在吃"+food);
        return "奥利给";
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", gender='" + gender + '\'' +
                '}';
    }
}
